< previous page page_540 next page >

Page 540
When you add a Command object to a connection of the data environment object, you automatically create a property thats a reference to the underlying recordset associated with that Command object. The name of the recordset will always be prefaced with the letters rs, followed by the name of the Command object. All you have to do is set the Recordset property of the ADO data control to the recordset in the data environment. You should now be able to run this form and scroll through the records.
Data View Window
The Data View window provides a way for you to look into any database to view and update the objects in that database. You can create tables, indexes, stored procedures, and triggers, as well as Oracle synonyms, functions, and packages within this window. You can use the Data View window instead of switching back and forth between Visual Basic and an external database tool. The Data View window is a great tool and is actually easier to use for certain operations than SQL Enterprise Manager. Youre only allowed to view objects in an Access MDB file, but you can add, modify, and delete objects in either SQL Server or Oracle.
This tool is available in both the Professional and Enterprise Editions from the Visual Basic toolbar (see Figure 27.7).
8160-0540a.gif
Figure 27.7
The Visual Basic toolbar with
the Data View window Tool icon.
You can also get to the Data View window from the View, Data View Window menu item. The Data View window is shown in Figure 27.8.
8160-0540b.gif
Figure 27.8
The Data View window.

 
< previous page page_540 next page >

If you like this book, buy it!